package hy.mvpbeam;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import hy.mvpbeam.activity.PictureActivty;
import hy.mvpbeam.activity.PictureListActivity;

public class MainActivity extends Activity {

    private static final String TAG = MainActivity.class.getSimpleName();
    private android.widget.Button btn1;
    private android.widget.Button btn2;
    private android.widget.Button btn3;
    private android.widget.LinearLayout activitymain;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main1);
        this.activitymain = (LinearLayout) findViewById(R.id.activity_main);
        this.btn2 = (Button) findViewById(R.id.btn_2);
        this.btn1 = (Button) findViewById(R.id.btn_1);
        btn1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, PictureActivty.class));
            }
        });
        btn2.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(MainActivity.this, PictureListActivity.class));
            }
        });
    }
}
